#include <stdio.h>
#include <string.h>

void my_strcpy(char *des, char *src);

int main() {
	char a[] = "asdfg";
	char b[20];

	strcpy(b, a);

	printf("strcpy:%s\n", b);
	printf("\n");

	char c[20];

	my_strcpy(c, a);

	printf("my_strcpy:%s\n", c);
	return 0;
}

void my_strcpy(char *des, char *src) {
	while (*src != '\0') {
		*des = *src;
		des++;
		src++;
	}
	*des = '\0';
}
